#include "formdcs.h"
#include "ui_formdcs.h"

FormDCS::FormDCS(QWidget *parent) :
        QWidget(parent),
        ui(new Ui::FormDCS)
{
    ui->setupUi(this);

    setWindowFlags(windowFlags() | Qt::Dialog);
    setWindowModality(Qt::ApplicationModal);
    setAttribute(Qt::WA_DeleteOnClose);

    dcsSettingWin = nullptr;
    dcsFileManageWin = nullptr;
    dcsPlayerWin = nullptr;
    qDebug() << "[FormDCS] \t Constructor";
}

FormDCS::~FormDCS()
{
    delete ui;
    qDebug() << "[FormDCS] \t Destructor";
}

void FormDCS::on_pushButtonDCSReturn_clicked()
{
    close();
}

void FormDCS::on_pushButtonDCSSettings_clicked()
{
    dcsSettingWin = new FormDCSSetting(this);
    dcsSettingWin->show();
}

void FormDCS::on_pushButtonDCSFileManage_clicked()
{
    dcsFileManageWin = new FormFilesManager(this);
    dcsFileManageWin->show();
}

void FormDCS::on_pushButtonDCSPlay_clicked()
{
    dcsPlayerWin = new FormDCSPlayer(this);
    dcsPlayerWin->show();
}
